add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

add_custom_target(make-ui
        COMMAND make -C ${CMAKE_CURRENT_SOURCE_DIR} ui
        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

add_executable(mainc src/main.c)
target_compile_options(mainc PUBLIC /FA)
add_executable(maincpp src/main.cpp)
# https://cmake.org/cmake/help/latest/prop_tgt/WIN32_EXECUTABLE.html
add_executable(ui WIN32 src/ui.c)
add_executable(network src/network.c)

#add_test(NAME main COMMAND main a b c)